<?php

/**
 * Cas form.
 *
 * @package    dnevnik
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class CasForm extends BaseCasForm
{
  public function configure()
  {
    $gods = array((date('Y') - 1), date('Y'), (date('Y') + 1));
    $godine = array();
    foreach ($gods as $god)
      $godine["$god"] = $god;

    $this->setWidget('datum', new sfWidgetFormJQueryDate(array(
      'image'=>'/images/icons/calendar_view_month.png',
      'format' => '%day%.%month%.%year%',
      'years' => $godine,
      )
      ));

      $this->setWidget('cas', new sfWidgetFormChoice(array('choices' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10))));

      $this->setValidator('red_br', new sfValidatorPass());
  }
}